<?php

Prado::using("Application.AppCode.PHPQRCode.qrlib");

class GeneradorQR extends TPage {
  public function onLoad($param) {
    parent::onLoad($param);

    try {
      $url = urldecode($this->Request["url"]);
      //QRcode::png("http://www.diosasdelplacer.cl/themes/user/images/recurso_escort/imagen/perfil/20130801214904_IMG_9131b.jpg");
      QRcode::png($url, "", QR_ECLEVEL_L, 2);
    } catch (Exception $e) {
      throw new Exception($e->getMessage());
    }
   
  }

}
?>
